# This is only a test file.
'''hello world test file '''
"""hello world test fiel """


import sys;
import json;
import random;
import urllib;
import requests;
import time;
import os;

import HttpTestCmds;

'''
sys.stdout.write("what's your name\n");
print(r"Hello, World!\n");


print(sys.path);

mylist = [ 'abcd', 786 , 2.23, 'runoob', 70.2 ]



print(mylist[0])
print(mylist[1:3])
print(mylist[2:3])

print(hex(12))
print(ord('0'))

'''
'''
x=int(input("Please input a int number\n"))
if x < 0:
    print("number is negative\n");
elif x == 0:
    print("number is zero\n")
else:
    print("number is positive\n");
'''

'''
print("round val",round(4.1234,3))

test = list(range(1,10,2))
print("range test",test)


testList = ["hello","world",123.05,0xff];
for i,v in enumerate(testList):
    print(i,v)


print(sys.path)


jsonTest = {"name":"yuhaiping","age":18}
file = open("D:\\testJson","w");

json.dump(jsonTest,file);


print("random test",random.randrange(100));


url="http://www.baidu.com"

payload={'message': "Opportunities and challenges together"}

r = requests.post(url, data=payload)
requests.post

print(r.status_code)
print(r.content)


print(type(r.content))
file = open("D:\\testHttpPyahon.html","wb");
file.write(r.content);
file.close();

'''
sn = '1ET1809000910'

while 1:
    print(os.name)
    print(os.getcwd())
    HttpTestCmds.lockHttpTest_queryDeviceParam("1ET1809000910")
    time.sleep(60*2)



